function autoScroll() { window.scrollBy(0, 10); // change the second argument (10) to adjust scrolling speed scrolldelay = setTimeout(autoScroll, 10); // change the second argument (10) to adjust delay between each scroll } autoScroll(); // call the function to start scrolling